﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Iworld.Toolkit.Converter
{
    /// <summary>
    /// 是否匹配转换为布尔值
    /// </summary>
    public class IsMatchToBoolConverter : ComparableParameterConverter<bool?>
    {

        protected override bool? GetValueFromComparabled(bool isMathc,int retVal)
        {
            return isMathc;
        }

      /*  protected override object ConvertBackNotNull(bool? value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value == true)
            {
                return parameter;
            }
            else
            {
                return "";
            }
        }*/
    }
}
